<?php

/* @var $this yii\web\View */

use yii\helpers\Html;
use yii\widgets\ActiveForm;


$this->title = '提现';
$this->params['breadcrumbs'][] = $this->title;
?>
<!-- page title -->
<div class="page-title">
  <div>
    <h1><i class="fa fa-trophy"></i> 提现</h1>
    <p style="font-style:normal;">提现申请发出后，baincapital私募基金风控部门审核通过后，即可到账。</p>
  </div>
</div>
<!-- page title end-->

<!-- page body start -->
<div class="card">
<?php $form = ActiveForm::begin(['options'=>['class'=>'form-horizontal']]); ?>

<?php
  if(isset($tip)&&$tip===true){
    if($model->hasErrors()){
?>
      <div class="alert alert-danger" role="alert">
        <?php
            foreach($model->getErrors("") as $key=>$value){
              echo $value."<br>";
            }
        ?>
      </div>
<?php
    }else{
?>
      <div class="alert alert-success" role="alert">提现申请成功，请等待审核结果！</div>
<?php
    }
  }
?>
<?=Html::activeHiddenInput($model,'userid')?>
<?=$form->field($model, 'name',[
  'labelOptions'=>[
    'class'=>'control-label col-sm-2'
  ],
  'template'=>'{label}<div class="col-sm-10">{input}</div>',
  'inputOptions'=>[
    'class' => 'form-control',
    'readonly'=>'true'
  ]
  ])->label('用  户  名')?>
<?=$form->field($model, 'realname',[
  'labelOptions'=>[
    'class'=>'control-label col-sm-2'
  ],
  'template'=>'{label}<div class="col-sm-10">{input}</div>',
  'inputOptions'=>[
    'class' => 'form-control',
    'readonly'=>'true'
  ]
  ])?>
<?=$form->field($model, 'alipay',[
  'labelOptions'=>[
    'class'=>'control-label col-sm-2'
  ],
  'template'=>'{label}<div class="col-sm-10">{input}</div>',
  'inputOptions'=>[
    'class' => 'form-control',
    'readonly'=>'true'
  ]
  ])?>
<?=$form->field($model, 'opencardbank',[
  'labelOptions'=>[
    'class'=>'control-label col-sm-2'
  ],
  'template'=>'{label}<div class="col-sm-10">{input}</div>',
  'inputOptions'=>[
    'class' => 'form-control',
    'readonly'=>'true'
  ]
  ])?>
<?=$form->field($model, 'bankcardid',[
  'labelOptions'=>[
    'class'=>'control-label col-sm-2'
  ],
  'template'=>'{label}<div class="col-sm-10">{input}</div>',
  'inputOptions'=>[
    'class' => 'form-control',
    'readonly'=>'true'
  ]
  ])?>
<!--输入-->
<?=$form->field($model, 'money',[
  'labelOptions'=>[
    'class'=>'control-label col-sm-2'
  ],
  'template'=>'{label}<div class="col-sm-10">{input}{hint}{error}</div>'
  ])->widget(\yii\widgets\MaskedInput::className(), ['mask' =>'9{0,9}.9{1,2}'])?>
<div class='row'>
  <div class='col-sm-2'>
  </div>
  <div class='col-sm-10'>
    <button type="submit" class="btn btn-warning">提交</button>
  </div>
</div>
<?php ActiveForm::end(); ?>
</div>
<!-- page body end-->
